package org.jow.common.config;

import org.jow.core.gen.excel.ExcelUtils;

/**
 * @author gaopan
 *
 * Param表中的常量
 */
public class ConstParam {
	<#list fieldList as field>
	/** ${field.des} */
	<#if field.isArray>
	public static ${field.fieldType}[] ${field.name};
	<#else>
	public static ${field.fieldType} ${field.name};
	</#if>
	</#list>
	
	public static void reload() {
		<#list fieldList as field>
		/** ${field.des} */
		<#if field.isArray>
		${field.name} = ExcelUtils.to${field.convertFunction?cap_first}("${field.name}", ConfParam.get("${field.name}").value, ${field.len});
		<#else>
		${field.name} = ExcelUtils.to${field.convertFunction?cap_first}("${field.name}", ConfParam.get("${field.name}").value);
		</#if>
		</#list>
	}
}
